package com.itheima.threadsynchronizedthird;


public class DrawThread extends Thread{

    private Account account;

    public DrawThread(Account account) {
        this.account = account;
    }

    public DrawThread(String name, Account account) {
        super(name);
        this.account = account;
    }

    public DrawThread(String name){
        super(name);
    }
    @Override
    public void run() {
        account.draw(100000);
    }

}
